// 设置token
export function setToken(token: string) {
  try {
    uni.setStorageSync('token', token);
  } catch (e) {
    console.log('set token error', e);
  }
}

// 获取token
export function getLocalToken() {
  try {
    return uni.getStorageSync('token');
  } catch (e) {
    console.log('get token error', e);
  }
}
